# Name of the target
set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_SYSTEM_PROCESSOR cortex-m7)

set(THREADX_ARCH "cortex_m7")
set(THREADX_TOOLCHAIN "gnu")

set(MCPU_FLAGS "-mthumb -mcpu=cortex-m7")
set(VFP_FLAGS "-mfpu=fpv5-sp-d16 -mfloat-abi=hard")
set(SPEC_FLAGS "--specs=nosys.specs")

set(C_DEFS "-DUSE_HAL_DRIVER -DSTM32F750xx -DTX_ENABLE_FPU_SUPPORT -DTX_ENABLE_STACK_CHECKING -DTX_INCLUDE_USER_DEFINE_FILE")
set(AS_DEFS "-DTX_ENABLE_FPU_SUPPORT")
set(LD_FLAGS " -T${LDSCRIPT}")

include(arm-none-eabi.cmake)
